Wraps a nkGraphics::VertexComponent and offers functions for use in scripting.
More...
Wraps a nkGraphics::VertexComponent and offers functions for use in scripting.
◆ updateEnvironment()
static void nkAstraeus::lua::nkGraphicsWrap::VertexComponentWrapper::updateEnvironment |
( |
nkScripts::Environment * |
env | ) |
|
|
static |
Updates a given environment and set it up to use all functions wrapped by this wrapper.
- Parameters
-
env | The environment to set up. |
◆ getPosition()
static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::VertexComponentWrapper::getPosition |
( |
void * |
data | ) |
|
|
static |
Wrapper function for nkGraphics::VertexComponent::_position, exposed as an attribute getter.
local p = m.position ;
- Parameters
-
data | The data from which the attribute will be retrieved. |
- Returns
- The attribute value, as a nkGraphics::Vector.
◆ setPosition()
static void nkAstraeus::lua::nkGraphicsWrap::VertexComponentWrapper::setPosition |
( |
const nkScripts::DataStack & |
stack | ) |
|
|
static |
◆ getNormal()
static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::VertexComponentWrapper::getNormal |
( |
void * |
data | ) |
|
|
static |
Wrapper function for nkGraphics::VertexComponent::_normal, exposed as an attribute getter.
local n = m.normal ;
- Parameters
-
data | The data from which the attribute will be retrieved. |
- Returns
- The attribute value, as a nkGraphics::Vector.
◆ setNormal()
static void nkAstraeus::lua::nkGraphicsWrap::VertexComponentWrapper::setNormal |
( |
const nkScripts::DataStack & |
stack | ) |
|
|
static |
◆ getColor()
static nkScripts::OutputValue nkAstraeus::lua::nkGraphicsWrap::VertexComponentWrapper::getColor |
( |
void * |
data | ) |
|
|
static |
Wrapper function for nkGraphics::VertexComponent::_color, exposed as an attribute getter.
local c = m.color ;
- Parameters
-
data | The data from which the attribute will be retrieved. |
- Returns
- The attribute value, as a nkGraphics::Vector.
◆ setColor()
static void nkAstraeus::lua::nkGraphicsWrap::VertexComponentWrapper::setColor |
( |
const nkScripts::DataStack & |
stack | ) |
|
|
static |
Wrapper function for nkGraphics::VertexComponent::_color, exposed as an attribute setter.
m.color = c ;
- Parameters
-
stack | The parameter stack. |
- Returns
- The attribute value, empty.
The documentation for this class was generated from the following file: